﻿using System.Windows.Forms;

namespace ThreadSafeControls {
    public class ThreadSafeNumericUpDown : ThreadSafeControl<NumericUpDown> {

        internal ThreadSafeNumericUpDown(NumericUpDown numericUpDown) : base(numericUpDown) { }

        public decimal Value {
            get { return ReturnAsync<decimal>(c => c.Value); }
            set { UpdateAsync(c => c.Value = value); }
        }

    }
}
